package com.hibase.upms.entity.organization.vo;


import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author ChrisCui
 * @date 2019-4-18
 */
@Data
public class MdsOrgViewVO {

    @ApiModelProperty(value = "id", example = "xxxxxxxxxx")
    private String id;

    @ApiModelProperty(value = "组织编号", example = "code")
    private String code;

    @ApiModelProperty(value = "组织名称", example = "海晨集团")
    private String name;

    @ApiModelProperty(value = "业务类型", example = "华南运输")
    private String bizType;

    @ApiModelProperty(value = "父组织ID", example = "11111111")
    private String parentId;

    @ApiModelProperty(value = "父组织名称", example = "海晨")
    private String parentName;

    @ApiModelProperty(value = "所有的父类层级ID", example = "123/678/456")
    private String parentIds;

    @ApiModelProperty(value = "子级数量")
    private Integer childNumber;

    @ApiModelProperty(value = "关联组织类型")
    private String relationType;

    @ApiModelProperty(value = "关联组织ID", example = "1234567")
    private String relationId;

    @ApiModelProperty(value = "状态")
    private Boolean status;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_MINUTE_PATTERN)
    @ApiModelProperty(value = "创建人", example = "2019-03-13 15:50:57")
    private String createBy;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_MINUTE_PATTERN)
    @ApiModelProperty(value = "创建时间", example = "2019-03-13 15:50:57")
    private Date createTime;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_MINUTE_PATTERN)
    @ApiModelProperty(value = "更新人", example = "2019-03-13 15:50:57")
    private String updateBy;

    @JsonFormat(pattern = DatePattern.NORM_DATETIME_MINUTE_PATTERN)
    @ApiModelProperty(value = "更新时间", example = "2019-03-13 15:50:57")
    private Date updateTime;

    @ApiModelProperty(value = "备注", example = "备注")
    private String remarks;
}

